module py2Obj {
	/**本地地图上所有青蛙 */
	export class bulletManager extends basicObj {

		/** 用来存储所有的子弹*/
		public m_bullet: basicProp[] = [];

		public arr: number[] = [];
		public pointArr: egret.Point[] = [];//随机位置
		//玩家加分

		public constructor(world: any, gamePanle: any, romveSkins: any) {
			super(world, gamePanle, romveSkins);
		}
	
		public removePorp(ba: basicProp) {
			var index = this.m_bullet.indexOf(ba);
			if (index > -1) {
				this.m_bullet.splice(index, 1);
			}
			else {
				return;
			}
			this.m_removeSkins.push(ba.getBody().userData.skin);
			this.m_world.removeBodys.push(ba.getBody());
			this.createProp(1);
		}
		public removePorp1(ba: basicProp) {
			var index = this.m_bullet.indexOf(ba);
			if (index > -1) {
				this.m_bullet.splice(index, 1);
			}
			else {
				return;
			}
			this.m_removeSkins.push(ba.getBody().userData.skin);
			this.m_world.removeBodys.push(ba.getBody());
			this.createProp(2);
		}
		//根据玩家的等级来创建一个或者多个道具
		public createProp(level) {
		}

		public init() {
			super.init();
		}
		public createMyRigidbody(): p2.Body {
			return null;
		}



	}
}